package com.mframe.system;

import com.mframe.web.SessionManager;

/**
 * @author cuijr
 * remark:获取session中的loginInfo信息
 */
public class SystemManager {
	public static LoginInfo getLoginInfo() {

//		ActionContext ctx = ActionContext.getContext();
//		HttpServletRequest request = (HttpServletRequest) ctx
//				.get(ServletActionContext.HTTP_REQUEST);

		Object loginInfo = SessionManager.getAttribute(
				MFrameConstant.SESSION_LOGIN_NAME);
		if (loginInfo != null) {
			return (LoginInfo) loginInfo;
		} else {
			return null;
		}
	}
}
